<div class="page-header">
	<h1>Dodaj novog stanara</h1>
</div>
		<div class="alert alert-warning alert-dismissable" ng-show="loginFailure">
			<button type="button" class="close" data-dismiss="alert"
				aria-hidden="true">&times;</button>
			<strong>Upozorenje!</strong> TODO: ....
		</div>
<form name="form">
	<fieldset>
		<div class="form-group" ng-class="{ 'has-error' : form.broj_Stana.$invalid  && !form.broj_Stana.$pristine }">
			<label for="broj_Stana">Broj stana</label> <input type="text" name="broj_Stana"
				class="form-control" autofocus="autofocus" ng-model="stanar.broj_Stana"
				placeholder="Broj stana" required autocomplete="off" />
		</div>
		<div class="form-group" ng-class="{ 'has-error' : form.name.$invalid  && !form.name.$pristine }">
			<label for="name">Ime</label> <input type="text" name="name"
				class="form-control" ng-model="stanar.name"
				placeholder="Ime" required />
		</div>
		<div class="form-group" ng-class="{ 'has-error' : form.lastName.$invalid  && !form.lastName.$pristine }">
			<label for="lastName">Prezime</label> <input type="text" name="lastName"
				class="form-control" ng-model="stanar.lastName"
				placeholder="Prezime" required />
		</div>
		<button class="btn btn-primary" ng-disabled="form.$invalid"
			ng-click="create(stanar)">Dodaj stanara</button>
	</fieldset>
</form>
